set(hacks_net_srcs
        platform_port.cpp
        platform_port.h
        tcp_acceptor.cpp
        tcp_acceptor.h
        tcp_conn.cpp
        tcp_conn.h
        tcp_client.cpp
        tcp_client.h
        socket_ops.cpp
        socket_ops.h
        ip_addr.cpp
        ip_addr.h
        tcp_server.cpp
        tcp_server.h
        io_buff.cpp
        io_buff.h)

add_library(hacks-net ${hacks_net_srcs})

install(TARGETS hacks-net DESTINATION lib)

file(GLOB HEADERS "*.h")
install(FILES ${HEADERS} DESTINATION include/hacks/net)

